Sir Keir Starmer has resigned as UK prime minister, saying 'my work is done' as he formally handed over leadership to Andy Burnham.