SriLanka face innings and series defeat in Cape Town