England's struggles with the bat continued as South Africa restricted them to 262-9 on the first day of their second test in Cape Town.