The government has announced a freeze on regulated rail fares for the first time since the mid-1990s, with the measure set to be confirmed in next week's Budget.