South African court prevents Sudan's al-Bashir from leaving country