Dogwalkers near a popular Cornish seaside resort have been warned to stay vigilant after a "toxic" substance was spotted on the shore.