Former Celtic defender Alan Stubbs says it will have been very difficult for Neil Lennon to make the decision to resign.