S&P 500 index on course for worst week since September after falls in tech sector