A funeral Mass is being given in Rome for Pope Francis, with hundreds of thousands of mourners gathering with church leaders and senior global political figures.