Passenger train services were delayed by the equivalent of more than 100 days in a year due to lorries hitting bridges, new figures show.