The focus of the French presidential campaign shifts to security and immigration after the shooting of a policeman by a gunman just days ahead of the first round of polls.