Passengers were stranded across Germany after trains were held at stations due to a technical malfunction in the communications system on Tuesday.