South Africa takes painful first steps towards reopening battered economy