GM to lay off thousands, pledges to hire 'skillsets of the future'