Man had knife in Dundee park