Asset price and wealth dynamics in a financial market with heterogeneous agents