Technology stocks drove a slump that erased November’s gains, as concerns about growth and privacy issues took an increasing toll.