Agreement gives owner of Guardian and Observer newspapers a 9% stake in digital start-up