How memory guides value-based decisions