A clean-up operation is under way after plastic pellets which pose a danger to wildlife washed up on beaches following a ship collision in the North Sea.