The European Union has agreed on ground-breaking rules for regulating crypto assets, as the rout in bitcoin piles pressure on authorities to rein in the sector.