Children with long-term health conditions may be more likely to experience mental illness in early adolescence than healthy children, according to new research.