Adverse effects of leverage and short-selling constraints in a financial market model with heterogeneous agents