South African rand stable after week of gains