The Caldeira?Leggett quantum master equation in Wigner phase space: continued-fraction solution and application to Brownian motion in periodic potentials