Pope Francis has been buried in Rome, with hundreds of thousands of people and dozens of world leaders attending his funeral at the Vatican.