Brazil's President Jair Bolsonaro contracted the virus after initially dismissing the pandemic as a "little flu".