"Despite the vast number of religions, nearly everyone in the world believes in the same things: the existence of a soul, an afterlife, miracles, and the divine creation of the universe. Recently psychologists doing research on the minds of infants have discovered two related facts that may account for this phenomenon. One: human beings come into the world with a predisposition to believe in supernatural phenomena. And two: this predisposition is an incidental by-product of cognitive functioning gone awry. Which leads to the question Is God an Accident?" This is an article in the December issue of "The Atlantic"
http://www.theatlantic.com/doc/200512/god-accident
I am not sure but you may have to subscribe to read this on line. I will give a short review because I think it is a very good read.
"Enthusiasm is building among scientists for the view that religion emerged not to serve a purpose?-not as an opiate or a social glue?-but by accident. It is a by-product of biological adaptations gone awry."
"We see the world of objects as separate from the world of minds, allowing us to envision souls and an afterlife; and our system of social understanding infers goals and desires, where none exist, making us animists and creationists."
"Nobody is born with the idea that humanity started in the Garden of Eden, or that martyrs will be rewarded in heaven; these ideas are learned. But the universal themes of religion are not learned. They are part of human nature."
"The theory of natural selection is an empirically supported account of our existence. But almost nobody believes it. We may intellectually grasp it, but it will never feel right. Our gut feeling is that design requires a designer."