UNSW research has highlighted a link between childhood obesity and a mother's diet before and during pregnancy.