Tunisia's ruling Ennahda party and the opposition have agreed on the appointment of a transitional administration in the coming weeks.