Venture-capital firms are raising money at the highest rate in more than 15 years, even as the values of some once-hot startups have begun to cool....