Using an Agent-Based Model to Simulate Loss-aversion and Learning Behaviour among Investors