Some £3.5 billion was invested in businesses across the UK through private equity between May and June, according to analysis from Barclays.