South African rand weakens ahead of US inflation report