TORONTO—As China imposed a sweeping national security law in Hong Kong last year after massive protests, residents of the city moved tens of billions of dollars across the globe to Canada, where thousands are hoping to forge a new future. Capital flows out of Hong Kong banks reaching Canada rose to their highest levels on…