Decision to pull thousands of doctors comes after Brazil's president-elect vowed to take action against Havana programme