US stocks close mixed as tech shares surrender early gains