US inflation hits three-year high