The monarch was joined by Prince Philip and Prince William for the annual ceremony at St Giles' Cathedral in Edinburgh in honour of her most senior Scottish knights and ladies.