A Cognitive Model of Information Foraging on the Web