US job growth slowed sharply in June, according to government data, as employers adding far fewer jobs than economists had expected.