A Wiltshire farmer has been given a suspended prison sentence after mistreating around 30 sheep and leaving multiple carcases to decay.