Under-18s with mental health issues to be asked about their social media use