Police are treating a car-ramming at a Christmas market in Germany that killed at least five people as an attack.