Mother told friend she was abusing baby weeks before causing her brain damage