The rand has weakened as the eurozone crisis deepened after Greek voters rejected terms of a rescue package, sending investors into safer havens.