Medical device maker Stryker Corp. will buy smaller rival Wright Medical Group for about $4 billion in cash, expanding into the fast-growing business of implants for shoulders and wrists.