Disruption following a train hitting an obstruction on the line between Wigan North Western and Preston has now ended.