South Africa's chief prosecutor has dropped fraud charges against the country's finance minister and two of his co-accused.