Cyber-attack hits UK rail ticket machines