PepsiCo has appointed a former US prosecutor as its new government affairs chief.