Local substitution and habit persistence: matching the moments of the equity premium and the risk-free rate