US inflation hits 3-year high at 4.2% as oil costs surge