Mating systems in cooperative breeders: the roles of resource dispersion and conflict mitigation