Mothers who smoke are putting more than their own health at risk, suggests a new study.