The CEO of creative software giant Adobe, Shantanu Narayen, is to resign after 18 years in the role, but will stay on as chair of the company board.