Leader of pro-Brexit UKIP party quits after 18 days