A former police officer has pleaded not guilty to committing sexual offences against a woman in Hertfordshire.