Spanning over five millenia, the RA’s ambitious survey show places contemporary artists’ works alongside works dating back to the Bronze Age.