Nawaz agrees to travel abroad for medical treatment