The disruption affected Great Western Railway and Transport for Wales services