The European Central Bank is to begin a two-year investigation into the prospects for launching a digital euro.