Rand stabilises as JSE gains ground on Moody's ratings affirmation