Ensuring the balance of private and public interests in the legal regulation of foreign investment in the Russian Federation