Dow, S&P 500 post five-day losing streak