First-principles relativistic theory of the magnetic response of paramagnetic metals: Application to yttrium and scandium