Bank of Scotland settles shared appreciation mortgage trial