Starbucks, the world's largest coffee-shop operator, is wrestling with higher costs for milk and coffee, according to its chief executive.