Planck intermediate results. XX. Comparison of polarized thermal emission from Galactic dust with simulations of MHD turbulence