investment partnership legal definition