The evidence from the social sciences suggests that people hold religious beliefs as superficial opinions which help them to manage anxiety. When they grow up in safe living conditions, they lose interest in religion, even in liberal societies where people can freely practice whatever religion they want consistent with public order. Psychologist Nigel Barber discusses this phenomenon in his ebook, Why Atheism Will Replace Religion: The triumph of earthly pleasures over pie in the sky:
http://www.amazon.com/Atheism-Will-Replace-Religion-ebook/dp/B00886ZSJ6
Barber's blog on the website of Psychology Today:
A new study by the Pew Forum on Religion and Public Life [executive summary; full report; New York Times cover story] found that 19.6% of adult Americans answered a question about their current religion by saying they were atheist, agnostic or “nothing in particular.” In 2007, the figure was 15.3%; in 1972, it was about 7%.
Some relevant quotes from the executive summary: