New research says that teens’ risky behavior, and their desire to be around same-aged peers, are the sorts of skills they need in order to get out of the nest and to lead productive lives.