Brian Farmer's decision to allow bull terrier Duke to starve to death was described by a sheriff as "an incredible act of cruelty".