The Queen, 92, looked resplendent in her robes and hat as she took part in the ceremony at St Giles' Cathedral in Edinburgh, accompanied by Prince William and Princess Anne.