US inflation accelerates to 3.4% as consumer spending jumps 0.3%