Photometric multi-site campaign on the open cluster NGC 884 I. Detection of the variable stars