PepsiCo has agreed a deal to acquire US firm Bare Snacks for an undisclosed sum.