NEW YORK (Reuters) - Diversified U.S. manufacturer 3M Co on Monday said it agreed to buy Cogent Inc for more than $900 million, paying a nearly 18 percent premium for the biometric identification systems company.