The government has increased the retirement age for members of the uniformed forces and the public service by five years.