Mourners lined the streets as the funeral procession made its way from Balmoral Castle to the Palace of Holyroodhouse in Edinburgh.