“Alarm bells” were raised by authorities over a mother and her four young sons before the children died in a fire while home alone, a court has heard.