The Princess of Wales made a rare public appearance with senior members of the royal family to welcome the Emir of Qatar to the UK at the start of his two-day state visit.