S&P 500 hits six-month low as market sentiment weakens