That could be a defective screen (the digitizer part - it's called ghost or phantom touches) or bad firmware. It can't be diagnosed any further without having the device in hand. (You could try Safe Mode - if it goes away, it's an app you installed that's causing it.)