Generic memory goes as far as basic reflexes, not a whole religion. Fight or flight is a generic memory for instance.
Neuroscientific research on mice suggests that some experiences can influence subsequent generations. In a 2013 study, mice trained to fear a specific smell passed on their trained aversion to their descendants, which were then extremely sensitive and fearful of the same smell, even though they had never encountered it, nor been trained to fear it.
Changes in brain structure were also found. The researchers concluded that "the experiences of a parent, even before conceiving, markedly influence both structure and function in the nervous system of subsequent generations"
Scientists speculate that similar genetic mechanisms could be linked with phobias, anxiety, and post-traumatic stress disorders, as well as other neuropsychiatric disorders, in humans.
All of which goes to show that you aren't born with a complete religious belief. You are born with curiosity and may self educate about a religion. However, having read the Bible there is no way i believe in a god or any religion based on such easy to disprove writing.