SoftBank said it was buying Ampere Computing, a Silicon Valley chip design startup, for $6.5 billion in cash.