COVID-19 infection rate and time spent at home: analysis of the beginning of the pandemic