Cafes are reinventing themselves as intellectual hubs.