Researchers have identified a genetic link to smoking in pregnancy.