Tech declines drag down Nasdaq and S&P