The Bridgend hospital was forced to temporarily stop accepting emergency patients on Tuesday evening due to a water supply issue