A substance which could cause cancer has been found on the former grounds of a chemical plant in Lancashire.