Icelandic voters will decide in August whether the country should resume negotiations with the EU, with a second vote required if a deal is eventually reached.