ISIS spy who betrayed Baghdadi was ‘Motivated by revenge’ after family’s harsh treatment