A new exhibition of the Hungarian photographer’s pioneering work offers an intimate chronicle of 20th century life