Fund inflows during the first half of the year reached their highest level since 2017 and are on track to set a new record.