it occurs mostly due to poor local hygiene, smegma
collects under the prepuce and it is not cleaned daily,there is chance of chronic infection leading to itching and cut on the penis.
there is also chance of fungal infection
as you are diabetic,infection spreads very easily'
you may consult skin specialist