The UK is set to have a referendum on whether or not to remain a member of the European Union.