Plastic pellets which can pose a threat to wildlife have washed up on shore following the collision between a tanker and a container ship in the North Sea, the coastguard has said.