En 43-årig norsk turist har gripits av tysk polis sedan han gått bärsärk på ett regionaltåg utanför Berlin.