Outgoing head Avi Gabbay, in parting speech, takes blame for poor election showing, but calls on Labor change its culture of internal backbiting