Deutsche Bahn, which used to be famous for its punctuality, has come under fire in recent years for delays, last-minute train cancellations and expensive ticket fares.