Services were unable to moo-ve after cows galloped along railway lines.