Quanterix Corp. agreed to acquire life sciences peer Akoya Biosciences Inc. in an all-stock deal, combining two companies that detect diseases at different stages of progression.