Microsoft is offering a voluntary retirement to roughly 7% of its workforce, a first for the 51-year-old tech giant.