Discount Factor as a Regularizer in Reinforcement Learning