Slowing growth in user numbers and failure to capture a bigger slice of digital advertising revenue drove the departure of the chief executive