(Reuters) - Yahoo Inc said that it will buy Qwiki Inc, a mobile app for creating videos in Apple Inc's iPhone, as it tries to increase its presence in the world of smartphones and tablets.