The allegations that ended Swalwell’s gubernatorial bid fit a longstanding pattern of behavior.