Spanish police have seized what is thought to be a national record haul of cocaine from a ship in the Atlantic Ocean.