US stocks trade mixed as S&P 500 hovers near 5,000