Rand weakens against US dollar