Asset price dynamics and diversification with heterogeneous agents