Weakly-supervised lesion analysis with a CNN-based framework for COVID-19