Stocks post worst weekly drop in nearly six months led by IT, pharma