The value of house sales in Scotland topped £24.3bn last year - the highest level since records began.