The United Kingdom’s death toll from confirmed cases of COVID-19 has exceeded 40,000, according to government data published on Friday.