Inflation in the UK decreased last month to 1.7%, according to official data.