NBC News, MSNBC cut ties with Mark Halperin