Benjamin Netanyahu fends off rival to retain leadership of his party