Angela Merkel, the German chancellor, has demanded the release of a German journalist arrested in Turkey amid calls for her government to block a visit by president Recep Tayyip Erdoğan over the case.