The country’s rapid urban growth means it is suffering from numerous teething problems – how did authorities get it so wrong?