SAN FRANCISCO (Reuters) - Yahoo Inc will buy mobile analytics startup Flurry to beef up a fast-growing mobile advertising business that still lags Google Inc's and Facebook Inc's in scale.