Gordon Brown has said he will take action after a child was battered to death while being monitored by social workers.