A former Metropolitan Police officer has pleaded guilty to forming an “inappropriate relationship” with a 16-year-old girl while on duty.