Zimbabwe 's main opposition party has cut ties with the South African government following its endorsement of parliamentary elections won by President Robert Mugabe 's ruling party .