Well, if you have a hamster running around trying to mount the others then I would definitely have to say the right thing to do would be to separate him! Unless you want more babies, but if they are related that this is not good.
So I would say you did the right thing by separating him