The Queen has led her family in mourning at the funeral of her husband, the Duke of Edinburgh, in the grounds of Windsor Castle.