A former police officer has appeared in court charged with multiple sex attacks on a girl in Wiltshire.