More than 17,000 children in Scotland were homeless last Christmas, figures obtained by the Scottish Liberal Democrats show.