The government has ordered a review of train fare prosecutions following claims of heavy-handed actions by train operators.