The former president of South Africa remained a creature of his racial and political background; his memoirs filled with efforts to explain how he and his colleagues were “products of our time”