The Role of Social Ties in Factor Allocation