Wall Street wrapped up a volatile week of trading with tech shares struggling.