Polish President Andrzej Duda has tested positive for COVID-19 as the country faces a surge in new infections.