12 shops gutted but timely action averts inferno