US inflation hits 3.8% as energy costs spread beyond pump