Alexis Sanchez og Serie A-klubben Inter er blevet enige om at ophæve kontrakten, meddeler Milano-klubben mandag.