The German government has condemned what it described as "absurd and unacceptable" comments by Turkish President Recep Tayyip Erdogan about Nazism in the midst of a growing diplomatic spat between the two countries.