Investment into mid-stage tech companies breaks all-time record