US stocks have ended sharply lower overnight, after figures showing higher than expected labour costs fuelled concerns about inflation and interest rates.