Transport for Wales said the incident occurred during the early hours of Monday