Former Australian cricketer Michael Slater has been sentenced to four years' imprisonment after pleading guilty to a series of domestic violence offences.