Resistivity mechanisms during clustering in alloys