Stewart Brand was at the heart of 60s counterculture and is now revered as a tech visionary whose book anticipated the web. Carole Cadwalladr met him