Risk of obesity can be accurately predicted in babies, study finds