Councils in England will have a legal duty to provide secure homes for victims, the PM says.