Investors pile back into equities after early-August sell-off