The officer has been given a criminal caution after illegally searching the police computer system for information and leaking it to the public