King Charles was undergoing cancer treatment when his daughter-in-law, Catherine, Princess of Wales, announced she had been diagnosed with the disease