French police investigate after a man wielding a knife attacked shoppers in a town under lockdown on Saturday.