Quantifying age and model uncertainties in palaeoclimate data and dynamical climate models with a joint inferential analysis