Argentina reaches agreement with IMF to refinance debt