Planck intermediate results. XXX. The angular power spectrum of polarized dust emission at intermediate and high Galactic latitudes