Evolutionary dynamics in financial markets with heterogeneities in strategies and risk tolerance