UAE shares end week mostly stable on profit-taking