Keir Starmer has told close friends he intends to stand down as Prime Minister and set out an orderly timetable for his departure.