Brain maturation plays a key role in the link between mental health and eating disorders in young people, according to the new research.