The council’s dereliction of its duty to offer alternative education support outside of school caused the child and his family avoidable distress, according to the local government watchdog