UK inflation rises in August as petrol and diesel prices climb