The Vatican has confirmed details on when Pope Francis' funeral will take place, with Prince William among guests.