President Ramaphosa of South Africa has declared an immediate national “state of disaster” in response to worsening power shortages that make a total blackout increasingly likely.