Scottish research quantifies rising costs of building