Diffusion processes in a financial market under heterogeneous trading and learning