S&P 500 ends seventh straight week down