Inflation in the UK rose to 3.5% in the year to September, the highest rate in nearly a year and above the Bank of England's 2% target.