Goods worth millions of rupees damaged as factories catch fire