The IPO market reignited in Q2 for venture-backed companies, but M&A deals slowed to a 12-year low