U.S. inflation accelerated last month as the cost of groceries and gasoline rose, a trend that will likely underscore the Federal Reserve’s resolve to delay any further interest rate cuts.