The UK Treasury has announced plans to regulate Bitcoin and other cryptocurrencies in line with EU regulations.