Constructing optimal sparse portfolios using regularization methods