Apple has launched its first MacBook Pro with a touchscreen, ending a position the company held for nearly two decades.