South African markets defy geopolitical tensions with record performance