Mother failed her starved daughter, court told