Longitudinal and transverse diffusion of electrons in high-pressure xenon