Global 3-group symmetry and ’t Hooft anomalies in axion electrodynamics