Doomed switches delay hundreds of trains