Several school districts in Massachusetts were affected by the national data breach of the software company PowerSchool.