Macron ally quits mayor race over sexting