Consumer prices in the United States have increased by more than 6% over the past 12 months, government figures showed on Wednesday — which is the largest inflationary rise in more than 30 years.