Higher-form symmetries in magnetohydrodynamics, effective field theory and holography