New Mexico ranked the worst, while Massachusetts was considered the best for families, according to study