Search for intermediate-mass black hole binaries in the third observing run of Advanced LIGO and Advanced Virgo