Germany's national rail operator says it was hit with a cyberattack on its systems that disrupted ticketing and timetable information.