A key inflation gauge rose 5.8 percent in 2021, most in 39 years