Wes Streeting has resigned as health secretary, amid speculation that he could launch a Labour leadership bid.