The effect of regularization in portfolio selection problems