The summer stock swoon continued in August as investors were spooked by the Chinese government’s surprise devaluation of the yuan, the prospects of the global economy slowing further and, as a result, uncertainty over the US Federal Reserve’s interest rate intentions.