Fintech M&A deals near $40bn in first half of 2018