US inflation cools to 3.4% as wage growth lags prices