France has been accused of an “unacceptable” attack on press freedom after the arrest of an investigative journalist who reported on leaked documents that alleged French intelligence was used to target civilians in Egypt.