An Isle of Wight man has avoided an immediate prison sentence after assaulting five police officers.