More than 240 people are thought to have died in 2023 across Scotland while homeless.