Prime Minister David Cameron is to step down by October after the UK voted to leave the European Union