How investors can protect against inflation