US indices in July post best monthly performance since November 2020