Microsoft announced plans to eliminate about 3,200 positions in its Xbox division, or 20% of staff, and sell or spin off four game studios as new CEO Asha Sharma attempts to reset the struggling business.