The Hong Kong government is aiming to ban retail investors from trading in cryptocurrencies and force exchange operators to obtain licenses, in a move that promises to end an era of largely unregulated trading of digital assets, according to officials.