H.D. Smith buys majority stake in Triplefin