Modern artists rejected the Western canon in favour of tribal art, writes Simon Wilson, as he takes in shows in Vienna and Berlin.