Is touching a non-Mahram woman invalidates person's ablution?
Touching non-Mahram woman is prohibited, and according to the Shafiee's, it invalidates the ablution. And Allah Knows Best.
In the last verse of Surah At-Tin, Allah Says (What means): "Is Allah not the most just of judges?" [At-Tin/8]. Is it permissible for us, while performing congregational prayer, to respond after the Imam recites it by saying: "Indeed, and I am among those who bear witness to that." ?
It is recommended for the worshipper to say 'Indeed' (Bala) silently after reciting or hearing the verse (/What means): "Is Allah not the most just of judges?" [At-Tin/8]. This is part of reflecting on the Quran during its recitation or listening, as Allah Says (What means): "Then do they not reflect upon the Quran, or are there locks upon [their] hearts?" (Muhammad: 24). Doing so helps in achieving humility and focus in prayer. And Allah Knows Best
Is it permissible for the doctor to uncover the hair of a female patient out of necessity?
It is only permissible for him to do so when there is no female doctor, and he should examine the patient in the presence of one of her Mahrams (unmarriageable kin).
Does wiping over one's socks during ablution permissible?
If the socks were thick, then wiping over them during ablution is permissible so long as wiping conditions are observed. And Allah Knows Best.