The rate of inflation in the U.S. rose again in July and drove the increase over the past year to a 30-year high, pointing to fresh strains on businesses and consumers as the economy recovers from the pandemic.