Peru has become a battleground for foreign investments, with the U.S. and China jostling for influence in the Latin American country.