Spanish police seized almost 10 metric tonnes of cocaine in their largest-ever haul of the drug on the high seas.