SABMiller is to fund South Africa's six main political parties ahead of next year's general election.