S&P 500, Nasdaq fall as tech shares give up gains - Reuters