Computer software that enables touts to exploit the secondary ticketing market by bulk-buying theatre seats will be banned under new government legislation.