Elections are looming in the US and South Africa, but investors should stick to their long-term strategy