Scalpers are reselling tickets for profit because the artists price them too low, hence allowing the scalper to make money. Artists price tickets too low for a variety of reasons (the ego boost of playing to sold out venues, a misguided sense of loyalty to their fans, etc).
All that is needed to stop scalping is to price the tickets appropriately when they are first issued.