Former health adviser found guilty of illegally accessing patient records