US inflation cools to 3.4% as Fed weighs October hike