A former Hong Kong primary school headmaster has been jailed for four years and three months for leaking examination questions to a tutorial centre run by his romantic partner.