Eric Swalwell’s campaign saw senior staff resign and allies break away after sexual assault allegations emerged.