Rand weakens on power cuts, stocks rise