A huge fire at a mattress plant remains under investigation as agencies work to secure the site and control pollution.