Weakly-supervised learning for image-based classification of primary melanomas into genomic immune subgroups