Higher Symmetries and Anomalies in 6d Supersymmetric Theories