The interplay between memory and value-based risky choice