On a hike in the Cotswolds, the novelist talks about the ethics of AI, his Brexit obsession " and the 'profound refreshment' he finds in walking