James DeGale was forced to work hard as he retained his European super-middleweight title with a gritty points win over Hadillah Mohoumadi.