How to debug iPhone slow/hung wifi network problem
In case any one with this problem stumbles across this question, the problem fixed itself after upgrading to iOS 12, so my guess is it was a bug in iOS 11.