Rank-revealing decomposition of symmetric indefinite matrices via block anti-triangular factorization