Efforts to modernise the capital Cairo’s infrastructure are running up against, and sometimes through, the city’s long history