Inflows through Stock Connect show how city’s fortunes have become increasingly dependent on capital from mainland