A new type of blood test could be an early warning for diabetes and other obesity-related complications in children, new research suggests.