That is the largest sum since the organization began tracking foreign investment in 2009, and those purchases amounted to 10 percent of the dollar value of all existing-home sales in the United States last year.