Universal consistency and rates of convergence of multiclass prototype algorithms in metric spaces