A Thames Valley police officer has been jailed after admitting to having sexual contact with a vulnerable woman, a London court has heard.