Putting the equivalent of the average annual cost of raising a child into a pension for 18 years could add around £351,000 to retirement savings.