Costs and cognitive disability: modelling the underlying associations