I feel OP has been treated appallingly by the railway and appallingly here. The ticket machine was broken: so, in good faith, he asked what to do, did what he was told, and from thereon out he's been treated like a criminal.
Am I alone in not finding this implausible? If he was recording...