Evolution of Time Preferences and Attitudes Towards Risk