The results appear to reflect a generational shift, as young women have tended to be more religious than their male peers.