A number of operations at the Royal Glamorgan Hospital in Llantrisant have been cancelled because of a shortage of junior doctors.