The majority of homeless in temporary accommodation are families, according to newly released figures.