German authorities received a warning last year about the suspect in a car attack at a Christmas market which killed five people, officials have said.