Pro-Brexit MEP announces resignation as UKIP leader