Hi,
I don’t know if you have changed screens recently (a poorly seated one can give this problem) or whether you experience the issue whilst the phone on charge or not being charged.
I found a very comprehensive article that covers quite a few suggestions to overcome the ghost touch.
You can read the information here:
https://www.techspunk.com/android-ghost-touch/
Hope this helps