Civil-law model of regulation of investment relations