The UK votes to leave the European Union, prompting David Cameron to announce he is to step down as prime minister - and UKIP leader Nigel Farage to declare it "independence day".