Police in Portugal and Spain have seized hundreds of kilograms of cocaine hidden inside fresh pineapples.