Impact of different investment horizons in heterogeneous agent models: Do long-term traders bring market stability?