Most of the residents managed to escape, but many children were trapped inside their shanty as the fire intensified, suggests preliminary probe