Microsoft co-founder Bill Gates has tested positive for COVID-19 with mild symptoms, he wrote in a tweet on Tuesday.