Partial regularity for the Landau-Lifshitz system