The Princess of Wales has given her personal thanks to staff who helped her at the Royal Marsden Hospital.