Morocco defeats South Africa in Davis Cup