US stocks close lower as tech sector slides