Researchers have identified a greater risk of mental health conditions among children and teenagers who are transgender and gender non-conforming.