An algorithm for clustering multi-mapping RNA-seq reads into representative loci