Analysis of spiral arms using anisotropic wavelets: gas, dust and magnetic fields in M51