Images talk to each other over time in this remarkable survey of more than 200 photographs from the vaults of the Royal Photographic Society, writes Laura Cumming