Children with autistic traits are more likely than their peers to develop an eating disorder, according to a new study.