The owner of an elderly dog who was left with an untreated tumour on his paw and a chronic skin condition has been banned from keeping animals for five years.