South Africa’s top court is to decide whether President Jacob Zuma should pay back money used to upgrade his ancestral home.