A nine-storey illegal garment factory has collapsed near Bangladesh's capital, Dhaka, killing at least 26 with around 200 said to still be trapped inside.