Gängkopplade personer ska kunnas stoppas från allmän plats – utan att ha dömts för brott.