New York City had four times the number of deaths as expected during its Covid-19 outbreak, according to a new study, including thousands of excess deaths that may not be attributed directly to the virus but to its effect on the health-care system, city services and other factors.