Investigating the use of telemedicine during the COVID-19 pandemic