How to protect your investment portfolio ahead the rising cost of living