US stocks end down as tech shares drop ahead of New Year