A record number of startups scored $1-billion-plus valuations in the second quarter