PepsiCo's president John Compton has left the group after less than eight months in the role.