Obesity can be detected in infants as young as 6 months, according to a new study.