SPIDER – IX. Classifying galaxy groups according to their velocity distribution