The King and Princess of Wales revealed they had been diagnosed with cancer during a difficult year for the royal family.