Tech group will retain most profitable ecommerce businesses but allow other units to spin off and list separately