King Charles - who has been undergoing cancer treatment - has cancelled a planned trip to Birmingham after taking advice from his doctors.