David Cameron resigns as UK Prime Minister