Rand firms near 5-week high as risk appetite improves