More than 70 passengers were stranded for over three hours as the train came to a halt in Dundee.