LONDON—King Charles III used his annual Christmas message Wednesday to hail the selflessness of those who have cared for him and the Princess of Wales this year, after both were diagnosed with cancer.