Many 20- and 30-somethings are finding it difficult to live in expensive cities, even if the opportunities and nightlife are still there.