Reid Hoffman, the LinkedIn co-founder and venture capitalist, will leave Microsoft Corp.’s board later this year, saying he wants to focus on his new artificial intelligence company.