Why don't you use move commands, instead of manually setting the position every tick?
Set up a custom movement behaviour and use that to move them to your touch locations, then give them an on collision event that tells them to stop when they bump into each other.
Alternatively, set your entire "on touch do move" event to be conditional that the two sprites are not overlapping.