Major accident averted as faulty signal brings trains too close on same track