Suppression of cooling by strong magnetic fields in white dwarf stars