agathocles and his army besieged carthage but they were repelled by its impregnable walls