The Princess of Wales has visited the hospital where she was treated for cancer to personally thank the medics who looked after her.