Iceland will hold a referendum “in the coming months” on whether to restart talks to join the European Union.