Stocks fell on Thursday, giving back some of the recent gains that pushed the S&P 500 and Nasdaq Composite to new records on Wednesday. Shares of the largest tech companies led the declines, with Apple dropping more than 5%, while Facebook, Amazon and Microsoft all shed more than 2%.