Hong Kong has signed a free trade agreement with Peru, concluding two years of negotiations with the South American nation.