Don’t let rising inflation deter you from investing