Sir Keir Starmer said he leaves Downing Street ‘with a smile’ and is ‘proud of everything that we have achieved’