China has accused the US of "coercion" after Panama declined to renew a Belt and Road Initiative infrastructure agreement with Beijing.