Both the government and rebels in South Sudan carried out war crimes against civilians and should face justice, an African Union human rights investigation has found.