McDonald's posted better-than-expected sales in the first quarter as a new burger - and a continuing emphasis on value - brought in customers.