Tanzanian president lifts ban on media