Stochastic comparisons of capital allocations with applications