Japan’s financial regulator is considering allowing commercial banks to invest in cryptocurrencies, an official said, in a fresh sign of the country’s growing openness to digital assets.