Via gender services, I was with the Tavistock clinic for 3 years. I never received any hormonal or surgical intervention it was just exploratory therapy. However, the way they approached it was pretty awful to be honest. I've gone into that in greater depth upthread if you want to know more. I then saw a private doctor for a year before being prescribed testosterone, however the aim of those consultations was to determine that my sex dysphoria was persistent, that I understood all the potential risks, and that I was psychologically suitable. Before each type of surgery you also have to be assessed by two psychiatrists to be approved.
Outside of gender services, I saw a social worker for one to one support from the age of about 13 to the age of 18 through CAMHS. I had told her about my sex dysphoria within a year or so of first seeing her. She was actually far superior to the Tavistock at helping me to consider my feelings, any factors that may be related to them, and to try experimenting with different options to see how it went. It was her suggestion that I was open about my attraction to women and stopped worrying about gender conformity. That was actually very valuable, as although it did not resolve my sex dysphoria, it did help to remove doubt about the best course of action.
I don't accept that sex dysphoria is an intellectual issue. I have met plenty of smart and plenty of stupid trans people, like anyone else. Furthermore, in my experience it was clear that the emotional distress was the end product, rather than the cause of the sex dysphoria.
As to the precise cause, no one knows so I cannot say for certain. There have been a number of theories, but none backed up with sufficient evidence to be considered conclusive. My suspicion is that it is multifactorial like many other conditions. In terms of the research there is some evidence for the following factors, however a lot of that evidence is weak:
(1) Genetics (generally) - studies that compare the co-occurrence of sex dysphoria in identical vs. non-identical twins. The effect was found to be significant, but the sample sizes were very small. Furthermore, for some studies there was recruitment through internet forums, which poses a high risk of bias.
(2) Specific mutations - variant phenotypes for androgen receptors and sex steroid enzymes found in higher rates in trans women and trans men (respectively) compared to others of their biological sex. The sample sizes for both these studies were larger so the results are more likely to be significant.
(3) Prenatal testosterone - differences associated with the opposite sex in ring to index finger ratio in trans men and women. Whilst studies have provided evidence for this as a potential factor, the results were quite heterogenous which decreases the confidence in those findings.
(4) Structural changes in the brain - differences associated with the opposite sex have been found in several sexually dimorphic regions of the brain. However, other sexually dimorphic regions have been found to match biological sex. Changes in non-sexually dimorphic regions have also been found between trans and non-trans people.
Some studies have shown these changes to be present in trans people both before and after hormonal treatment, and lacking in control groups possessing comparable hormonal profiles. In other studies, changes were associated with the hormonal treatment itself. Again, sample sizes are an issue for many studies, so it is hard to determine if this is representative for all trans people. Furthermore, associations alone do not determine whether there is a causal relationship.
There may be other research, but those are the ones I'm aware of. I'm happy to look at other studies people may have come across.