Scientists have identified a single gene that gives rise to a rare form of diabetes, unique to newborn babies.