Twelve girls, aged between 12 and 16, were members of a chat group that led to “serious self-harm”.