One-loop superstring six-point amplitudes and anomalies in pure spinor superspace