Deal with Vienna-based Erste Group cuts exposure to country with few connections to Spanish bank’s biggest markets