The Dow Jones and the Nasdaq recorded the biggest falls since 2008, led by tech giants.