Ulster Unionist leader Mike Nesbitt has quit after his party's poor showing in the Assembly election.