How to protect your investments during periods of high inflation