A control strategy to prevent propagating delays in high-frequency railway systems