Prime Minister David Cameron has announced he will step down following the UK's decision to leave the European Union.