Protective Behaviors and Secondary Harms Resulting From Nonpharmaceutical Interventions During the COVID-19 Epidemic in South Africa: Multisite, Prospective Longitudinal Study