Wall Street mixed as S&P 500 on track for best August in 36 years