Planck intermediate results. XV. A study of anomalous microwave emission in Galactic clouds