Segmentation-free inference of cell types from in situ transcriptomics data