Global investment flows bounce back to $852B in H1