US authorities have seized cocaine from inside a “parasitic device” clamped to the hull of a container ship in Puerto Rico.