US services sector contracts for first time in nearly a year as demand weakens