Streeting’s resignation comes in the wake of the Labour party’s poor performance in the local elections, held on 7 May.