A Model of Intertemporal Choice with Rank-Dependent Discounted Utility