Cities seem to be failing in their designs even as people flock to them in ever greater numbers.