Happen the same to me few months ago. One day it stops and another day it was working again and so on. I did not flash different roms, after 2 years I can expect that, I just replaced the digitizer touch screen and with the same rom it working back flawlessly. Now I don't have problems at all so it's hardware problem and you should do the same. It cost just 20 bucks.
IF I HELPED DO NOT SAY THANKS, CLICK IT.
My Evolution: Sony Xperia Z1 - UB + 4.3 Rooted + Deodexed, HTC HD2, HTC Diamond 2, HTC HD Blackstone, Nokia 7070 Prism, Qtek 9100, Nokia 3100, Motorola T720i, Nokia 3310, Sony Ericson PF 768 (Blue)
How Get Root on Sony Xperia Z1 with Locked Bootloader and the Latest Android 4.4