The cognitive revolution and the decline of monotheism