Outgoing British Prime Minister David Cameron thanks his colleagues in parliament as he leaves, following last month's referendum to leave the European Union.