Clearwater Analytics over the weekend agreed to a buyout from private-equity firms, after the stock market failed to reward a string of acquisitions the fund management accounting software provider made.