PepsiCo has posted a lift in sales and profits for its first quarter, despite a softening of volumes in North America.