Man suspected of ties to Berlin attacker detained in Germany