Touch lags in all apps, except keyboard
I figured out the cause as I was writing the question - the "triple tap to zoom" accessibility feature was enabled. This means that the phone can't register any taps until waiting to make sure there isn't another tap.

Disabling this feature removed the delay.