France says only ‘legitimate’ Niger government can cut military ties