Bain Capital to buy stake in enterprise software firm iManage - Reuters