All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
If your situation has reached the point which you mentioned - that the yellow trace is not removed even with the use of water except with hardship, then this trace is overlooked after you have done your best (to remove it). It is known (as an Islamic principle) that hardship necessitates (brings) ease. Indeed, a group of jurists are of the view that the trace of Istijmaar (cleaning oneself after the call of nature with stone, wood or tissue and the like) is excused at the usual place of discharge [urine or feces] because of the hardship (of washing it). Kashshaaf Al-Qinaa’, which is one of the books of the Hanbali School of jurisprudence, reads, “The trace of Istijmaar is impure and its small remnants are excused at their usual place of discharge because of the hardship (of washing it).”
This is the opinion of the Hanafi and Maaliki Schools of jurisprudence, and the view of the later scholars of the Hanbali School of jurisprudence.
Moreover, many jurists are of the view that small impurities which are difficult to avoid [get rid of] are excused.
For instance, Shaykhul-Islam Ibn Taymiyyah said, “The majority of the scholars are of the view that the appearance of a small part of the ‘Awrah and a small quantity of impurity which are difficult to avoid are excused.”
Therefore, if you perform Istinjaa’ (which is to remove what comes out of the two private parts from the place where it comes out or the place that is nearest it by washing it with water) or Istijmaar (by wiping it with stones and the like) after relieving yourself and you did your best without any hardship that you could not bear, then you did what you are required to do and the fact that a yellow trace remains does not harm you. However, if the yellow trace comes out after having performed Istinjaa’, then you are affected with incontinence.
For more on the rulings on incontinence, please refer to Fatwas 163887 and 152651.
You may also refer to Fatwas 170735 and 131647.
Allaah Knows best.