The outbreak of disease caused by the new coronavirus has raised questions about a phenomenon known as “herd immunity” and whether it might play a role in how the pandemic progresses.