T-branes, anomalies and moduli spaces in 6D SCFTs