The family of a man who died after officers restrained him have settled their damages action against Police Scotland.