UK votes to leave EU and Cameron resigns