The role of magnetic fields in cluster cooling flows