The rising cost of fuel, food and rent pushed US inflation to a 40-year high of 9.1% in June, according to the latest figures.