Advisor to J-K CM Amitabh Mattoo resigns