(Reuters) - Private equity firm Bain Capital will buy Envestnet ( ENV ) in a $4.5 billion deal, the financial software vendor said on Thursday.