Adaptive Discounting in Reinforcement Learning