Prince William has been described as the Princess of Wales's "rock" during her cancer journey.