International investors had heavily invested in Brazilian markets anticipating a presidential election victory by Flávio Bolsonaro