Croatian retailer Agrokor has dropped its bid to acquire a controlling stake in Slovenian rival Mercator.