US manufacturing shrinks for first time in 3 years