Precog: Intelligent Prefetching on Smartphones for WiFi Offloading