With stock markets near record highs, geopolitical events around the world are giving investors the jitters.