US inflation accelerates, reaching three-year high