The campaign for Britain to leave the European Union has taken a new twist with the unexpected resignation of UK Independence Party leader Nigel Farage.