Ballarat man jailed for punching partner and police