How to mitigate investment risks