Judge warns over “dangerously high” hormone dose prescribed to teenager by online gender clinic