Former president Barack Obama has confirmed he has tested positive for COVID-19