A five-month-old baby who was not provided with a cot in temporary housing died in bed with her parents, an inquest heard.