Check out this study...

https://onlinelibrary.wiley.com/doi/...9.2009.01392.x

One result that surprised me was that condoms had no significant impact on the median time to cum.

Masturbation probably affects your ability to cum. I think it did mine too. But I also think that when you start having difficulties because of physical causes, it gets into your head and becomes a psychological problem.