More than 5,400 Massachusetts residents had their Social Security numbers exposed in the massive data breach that Capital One Financial Corp. disclosed in 2019.